package cn.trasen.his.poc.std.api.model.major;

import pro.shushi.pamirs.boot.base.ux.annotation.field.UxWidget;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxForm;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxTableSearch;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.common.CodeModel;

/**
 * @author shushi
 */
@Model.model(OrgInfo.MODEL_MODEL)
@Model(displayName = "机构信息", labelFields = {"shortName"})
@Model.Code(sequence = "SEQ", prefix = "H", size = 5, step = 1, initial = 10000)
public class OrgInfo extends CodeModel {

    public static final String MODEL_MODEL = "ts.his.OrgInfo";

    @UxTableSearch.FieldWidget(@UxWidget())
    @UxForm.FieldWidget(@UxWidget(readonly = "true", hint = "为空时自动生成"))
    @Field.String
    @Field(displayName = "编码", unique = true)
    private String code;

    @UxTableSearch.FieldWidget(@UxWidget())
    @Field.String
    @Field(displayName = "机构简称", required = true)
    private String shortName;

    @UxTableSearch.FieldWidget(@UxWidget())
    @Field.String
    @Field(displayName = "机构全称", required = true)
    private String name;

    @Field.String
    @Field(displayName = "机构地址")
    private String address;

    @Field.Text
    @Field(displayName = "机构描述")
    private String desc;

}
